﻿// Beginning.cpp: 实现文件
//

#include "pch.h"
#include "GreedySnake.h"
#include "Beginning.h"
#include "afxdialogex.h"


// Beginning 对话框

IMPLEMENT_DYNAMIC(Beginning, CDialogEx)

Beginning::Beginning(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_BEGINNING_DIALOG, pParent)
{

}

Beginning::~Beginning()
{
}

void Beginning::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(Beginning, CDialogEx)
	ON_BN_CLICKED(IDC_OPT_Start, &Beginning::OnBnClickedOptStart)
END_MESSAGE_MAP()


// Beginning 消息处理程序


void Beginning::OnBnClickedOptStart()
{
	// TODO: 在此添加控件通知处理程序代码
	Beginning page;    //创建了一个新对话框类
	page.DoModal();  //加载新对话框
}
